package com.qztc.hire_end_dto.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@TableName("hanfu")
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "汉服信息")
public class HanFu extends Model<HanFu> implements Serializable {
    @Schema(title = "汉服id")
    @TableId(value = "hanfu_id")
    private int hanfuId;

    @Schema(title = "汉服名")
    @TableField(value = "hanfu_name")
    private String hanfuName;

    @Schema(title = "汉服标题")
    @TableField(value = "hanfu_title")
    private String hanfuTitle;

    @Schema(title = "汉服详情")
    @TableField(value = "hanfu_content")
    private String hanfuContent;

    @Schema(title = "汉服租价")
    @TableField(value = "hanfu_price")
    private double hanfuPrice;

    @Schema(title = "汉服款式，男款还是女款")
    @TableField(value = "hanfu_sex")
    private String hanfuSex;

    @Schema(title = "汉服创建日期")
    @TableField(value = "hanfu_createdate")
    private String hanfuCreatedate;

    @Schema(title = "汉服品牌id，外键")
    @TableField(value = "brand_id")
    private int brandId;

    @Schema(title = "汉服月租量")
    @TableField(value = "hanfu_hirenum")
    private int hanfuHirenum;

    @Schema(title = "汉服图片URL")
    @TableField(value = "hanfu_url")
    private String hanfuURL;
}
